<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户注册</title>
<style type="text/css">
<!--
td {  font-size: 9pt}
-->
</style>
<script type="text/javascript">

function check_username(field)
{
	if (field.value.length < 3 || field.value.length > 32)
	{
		alert("User name must be 6 ~ 32 characters!");
		return false
	}
	return true
}

function check_password(field1, field2)
{
	if(field1.value != field2.value)
	{
		alert("Password mismatch!");
		return false
	}
	if(field1.value.length < 6)
	{
		alert("Password too short!");
		return false
	}
	return true
}

function check_email(field)
{
	with (field)
	{
		apos=value.indexOf("@")
		dotpos=value.lastIndexOf(".")
		if (apos<1||dotpos-apos<2) 
		{
			alert("Email address is not valid!");
			return false
		}
		else
		{
			return true
		}
	}
}

function validate_form_password(thisform)
{
	with (thisform)
	{
		if (check_password(password, password2) == false)
		{
			password.focus();
			return false
		}
		if (check_email(email) == false)
		{
			email.focus();
			return false
		}
	}
}
function validate_form_email(thisform)
{
	with (thisform)
	{
		if (check_email(email) == false)
		{
			email.focus();
			return false
		}
	}
}

</script>
</head>
</head>
<body bgcolor="#ffffff" topmargin=0>
<center>
  <p>&nbsp;</p>
  <table border=0 cellpadding=3 cellspacing=5 width="589">
    <form method="POST" name="changepasswd" onsubmit="return validate_form_password(this);" action="changepasswd.php">
       <tr> 
        <td colspan=3 bgcolor="#ccddFF">修改密码</td>
      </tr>
      <tr> 
        <td nowrap bgcolor="#FFFFFF" width="78"> 新密码</td>
        <td bgcolor="#FFFFFF" width="179"> 
          <input type="password"  name="password" size="28" maxlength="32">
        </td>
        <td rowspan=2 bgcolor="#eeFFee" width="298"> 密码至少包含六个字符</td>
      </tr>
      <tr> 
        <td nowrap bgcolor="#FFFFFF" width="78"> 重新输入密码 </td>
        <td bgcolor="#FFFFFF" width="179"> 
          <input type="password"  name="password2" size="28" maxlength="32">
        </td>
      </tr>
      <tr> 
        <td height="46" colspan="4" align="left"> 
          <input type="submit"  name="submit" value=" 修改 ">
        </td>
      </tr>
      <tr>
        <td height="46" colspan="4" align="right">
        <hr size="1" color="#8CA5B5">
        </td>
      </tr>
    </form>
  </table>
  <table border="0" cellpadding="3" cellspacing="5" width="589">
    <form action="changeemail.php" method="post" name="changeemail" id="regform2" onsubmit="return validate_form_email(this);">
      <tr>
        <td colspan="3" bgcolor="#ccddFF">修改Email地址</td>
      </tr>
      <tr>
        <td height="46" colspan="2" align="left"><p>修改Email地址需要重新验证，在此期间帐户将被禁用</p>
        </td>
      </tr>
      <tr>
        <td nowrap="nowrap" bgcolor="#FFFFFF" width="78"> Email: </td>
        <td nowrap="nowrap" bgcolor="#FFFFFF" width="179"><input type="text" name="email" value="" size="28" maxlength="64" /></td>
        <td bgcolor="#eeFFee" width="298"> 请输入新的Email地址</td>
      </tr>
      <tr>
        <td height="46" colspan="4" align="left">
        <input type="submit"  name="submit" value=" 提交验证 " />
        </td>
      </tr>
      <tr>
        <td height="46" colspan="4" align="right">
        <hr size="1" color="#8CA5B5">
        </td>
      </tr>
    </form>
  </table>
  <table border="0" cellpadding="3" cellspacing="5" width="589">
    <form action="resendemail.php" method="post" name="resend" id="regform3" >
      <tr>
        <td width="257" bgcolor="#ccddFF">重新发送激活邮件</td>
      </tr>
      <tr>
        <td height="46" colspan="2" align="left"><p>          如果您没有收到激活邮件，请点击下面的按钮重新发送。</p>
          <p>
            <input type="submit"  name="submit" value=" 重新发送邮件 " />
        </p></td>
      </tr>
      <tr>
        <td height="46" colspan="4" align="right">
        <hr size="1" color="#8CA5B5">
        </td>
      </tr>
    </form>
  </table>
  <p>&nbsp;</p>
  <table width="589" border="0" cellpadding="3" cellspacing="5">
    <form action="register.php" method="post" name="regform" id="regform" onsubmit="return validate_form(this);">
    </form>
    <tr>
      <td colspan="4"><br />
        <p><br />
        </p>
        <p><br />
        </p>
        <p><br />
        </p>
        <p><br />
        </p>
        <p> &nbsp; 2015 &copy; <a href="http://www.thewestlake.net/">西湖网络</a> </p></td>
    </tr>
  </table>
  <p>&nbsp;</p>
</center>
</body></html>

